python detect_tk.py